package com.battle.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import lombok.Data;
import nirvana.core.domains.ann.AccEntity;
import nirvana.core.domains.entity.DomainBaseEntity;
import nirvana.core.domains.enums.EntityType;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * @author anni.zhu
 * @author anni.zhu@king-v.com
 * Created in 2024/10/25 16:13
 * 训练考核
 */
@Data
@TableName(value = "TRAINING_ASSESSMENT",autoResultMap = true)
@Entity(name = "TRAINING_ASSESSMENT")
@AccEntity(value = "训练考核", type = EntityType.SERVICE_ENTITY)
public class TrainingAssessment extends DomainBaseEntity<TrainingAssessment> {
    /**
     * 人员id
     */
    @Column()
    private Long personId;

    /**
     * 训练日期 yyyy-MM-dd
     */
    @Column()
    private LocalDate assessmentDate;

    /**
     * 训练名称
     */
    @Column()
    private String projectName;

    /**
     * 数量
     */
    @Column()
    private Integer number;

    /**
     * 单位
     */
    @Column()
    private String unit;

    /**
     * 分数
     */
    @Column()
    private BigDecimal score;
}
